﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XYS.Service.Core.Models
{
    /// <summary>
    /// rabbit mq 配置项
    /// </summary>
    public class RabbitMQSetting
    {
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Enable { get; set; } = true;
        /// <summary>
        /// Rabbit MQ host 配置
        /// </summary>
        public List<RabbitMQHost> Hosts { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 客户端命名
        /// </summary>
        public string ClientProvidedName { get; set; }
    }

    /// <summary>
    /// Rabbit MQ host 配置
    /// </summary>
    public class RabbitMQHost
    {
        /// <summary>
        /// host
        /// </summary>
        public string Host { get; set; }
        /// <summary>
        /// 端口
        /// </summary>
        public int Port { get; set; } = 5672;
    }
}
